Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(cypress): correction of cypress tests env variables for Payment method list #5299

Merged
merged 2 commits into from
Jul 12, 2024

Conversation

prajjwalkumar17
Copy link
Contributor

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Setting Stripe as Default Pass-by for configs of response in our PaymentMethodList test scenarios.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Ran Cypress tests on Local:
Screenshot 2024-07-11 at 6 55 48 PM

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@prajjwalkumar17 prajjwalkumar17 added C-refactor Category: Refactor C-test Category: Tests labels Jul 11, 2024
@prajjwalkumar17 prajjwalkumar17 added this to the July 2024 Release milestone Jul 11, 2024
@prajjwalkumar17 prajjwalkumar17 self-assigned this Jul 11, 2024
@prajjwalkumar17 prajjwalkumar17 requested review from a team as code owners July 11, 2024 13:26
Sakilmostak
Sakilmostak previously approved these changes Jul 11, 2024
@@ -250,7 +244,7 @@ describe("Payment Method list using Constraint Graph flow tests", () => {

// payment method list which should only have credit with Stripe and Cybersource
it("payment-method-list-call-test", () => {
let data = getConnectorDetails(globalState.get("connectorId"))[
let data = getConnectorDetails("stripe")[
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do you make sure that it also runs for cybersource? i'm sure that this will run for stripe irrespective of connectors.

the same applies applies else where

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only for getting the Response and Request configs which in PaymentMethodList will be same irrespective of any connector, as this is connector agnostic.
Moreover, we have implemented it for Stripe and Cybersource, So if the List runs fine for any 2 connectors it will run for any connectors, again as this is connector agnostic.

@pixincreate pixincreate added this pull request to the merge queue Jul 12, 2024
Merged via the queue into main with commit 1081e38 Jul 12, 2024
13 checks passed
@pixincreate pixincreate deleted the refactor/cypress branch July 12, 2024 06:11
pixincreate added a commit that referenced this pull request Jul 16, 2024
…ositives

* 'main' of github.com:juspay/hyperswitch:
  refactor(cypress): correction of cypress tests env variables for Payment method list (#5299)
  chore(version): 2024.07.12.0
  fix(router): fixed integrity check failures in case of 3ds flow in sync flow (#5279)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-refactor Category: Refactor C-test Category: Tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REFACTOR]: Correct cypress tests env variables for Payment method list testing
3 participants